Production of tailor-made mesh